package dataS.queue;

public class QueueTest {
    public static void main(String[] args) {
        MyCycleQueue MyCycleQueue=new MyCycleQueue(4);
        MyCycleQueue.insert(1);
        MyCycleQueue.insert(2);
        MyCycleQueue.insert(3);
        MyCycleQueue.insert(4);

        while (!MyCycleQueue.empty()){
            System.out.println(MyCycleQueue.remove());
        }

        MyCycleQueue.insert(8);



    }
}
